﻿@model LynxWiki.DomainModel.IndexStatus

@{
    ViewBag.Title = "Lucene Index Status";
}

<h2>Lucene Index Status</h2>

<table class="TableClass">
    <tr>
        <td class="TableCell">NumSegments</td><td class="TableCell">@Model.NumSegments</td><td class="TableCell">Number of segments in the index.</td>
    </tr>
    <tr>
        <td class="TableCell">Clean</td><td class="TableCell">@Model.Clean</td><td class="TableCell">True if no problems were found with the index.</td>
    </tr>
    <tr>
        <td class="TableCell">NumBadSegments</td><td class="TableCell">@Model.NumBadSegments</td><td class="TableCell">How many bad segments were found.</td>
    </tr>
    <tr>
        <td class="TableCell">MissingSegments</td><td class="TableCell">@Model.MissingSegments</td><td class="TableCell">True if we were unable to locate and load the segments_N file.</td>
    </tr>
    <tr>
        <td class="TableCell">MissingSegmentsVersion</td><td class="TableCell">@Model.MissingSegmentsVersion</td><td class="TableCell">True if we were unable to read the version number from segments_N file.</td>
    </tr>
<!--    <tr>
        <td class="TableCell">Dir</td><td class="TableCell">@Model.Dir</td><td class="TableCell">Directory index is in.</td>
    </tr>     -->
    <tr>
        <td class="TableCell">SegmentsFileName</td><td class="TableCell">@Model.SegmentsFileName</td><td class="TableCell">Name of latest segments_N file in the index.</td>
    </tr>
    <tr>
        <td class="TableCell">Partial</td><td class="TableCell">@Model.Partial</td><td class="TableCell">True if we checked only specific segments (Lucene.Net.Index.CheckIndex.CheckIndex_Renamed_Method(System.Collections.Generic.List<System.String>)) was called with non-null argument).</td>
    </tr>
    <tr>
        <td class="TableCell">TotLoseDocCount</td><td class="TableCell">@Model.TotLoseDocCount</td><td class="TableCell">How many documents will be lost to bad segments.</td>
    </tr>
    <tr>
        <td class="TableCell">ToolOutOfDate</td><td class="TableCell">@Model.ToolOutOfDate</td><td class="TableCell">True if the index was created with a newer version of Lucene than the CheckIndex tool.</td>
    </tr>
</table>


<input type="button" id="btnClose" name="btnClose" value="Close" onclick="CloseWithWindowOpenTrick();" />

@section Scripts {
<script type="text/javascript">
    function CloseWithWindowOpenTrick() {
        var objWindow = window.open(location.href, "_self");
        objWindow.close();
    }
  </script>
}